<template>
  <el-config-provider :locale="zhCn">
    <component :is="layout">
      <router-view />
    </component>
  </el-config-provider>
</template>

<script setup lang="ts">
import zhCn from 'element-plus/es/locale/lang/zh-cn';
import EmptyLayout from '@/layout/empty.vue';

const route = useRoute();
const layout = computed(() => route?.meta?.layout || EmptyLayout);
</script>

<style lang="less">
@import '~@/styles/index.less';
</style>
